package pong;

public class NetworkedComm implements Comm{

    private PongDataHandler handler;
    @Override
    public void connect(PongDataHandler handler) {
        this.handler = handler;
        
        // connect try as client if fails as server
    }

    void receiveData()
    {
        Ball b = new Ball(null);
        handler.receiveBall(null);
        handler.receivePaddle(Direction.UP_LEFT);
    }
    
    @Override
    public void sendPaddle(Direction d) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void sendBall(Ball b) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void disconnect() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
